<template>
	<view class="container">
		<view class="tui-content">
			<view class="tui-form">
				<image src="/static/images/mall/img_recharge_success.png" class="tui-icon" mode="aspectFill"></image>
				<view class="tui-title">收款成功</view>
				<view class="tui-sub-title">非常感谢您购买我们的产品</view>
				<view class="tui-btn-box">
					<tui-button type="primary" width="240rpx" height="70rpx" :size="28" shape="circle" @click="go('../index/index')">返回首页</tui-button>
					<!-- <tui-button type="danger" shadow width="240rpx" height="70rpx" :size="28" shape="circle" @click="go(2)">查看订单</tui-button> -->
					<tui-button type="danger" width="240rpx" height="70rpx" :size="28" shape="circle" @click="upload">上传凭证</tui-button>
					<tui-button type="warning" width="240rpx" height="70rpx" :size="28" plain shape="circle" @click="go('../order/order')">开单</tui-button>
					<tui-button type="warning" width="240rpx" height="70rpx" :size="28" plain shape="circle" @click="go('../card/index')">开卡</tui-button>
				</view>
			</view>
		</view>
		<!-- <view class="tui-tips">
			<view class="tui-grey">温馨提示:</view>
			<view class="tui-light-grey">
				付款成功后，本司不会以付款异常、卡单、系统升级为由联系您。请勿泄露银行卡号、手机验证码，否则会造成钱款损失！谨防电话诈骗！
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				osn:'',
				type:0,
			}
		},
		onLoad(opt){
			this.osn = opt.osn;
			this.type = opt.type;
		},
		methods: {
			go(page) {
				uni.reLaunch({
					url:page
				})
			},upload() {
				uni.reLaunch({
					url:'/pages/upload/upload?osn='+this.osn
				})
			}
		}
	}
</script>

<style>
	.tui-bg {
		width: 100%;
		height: 260rpx;
		background: linear-gradient(20deg, #E41F19, #F34B0B);
		border-bottom-left-radius: 42rpx;
	}

	.tui-content {
		padding: 0 35rpx;
		box-sizing: border-box;
	}

	.tui-form {
		/* background: #fff; */
		/* height: 500rpx; */
		/* box-shadow: 0 10rpx 14rpx 0 rgba(0, 0, 0, 0.08); */
		border-radius: 10rpx;
		position: relative;
		z-index: 10;
		display: flex;
		align-items: center;
		flex-direction: column;
	}

	.tui-icon {
		width: 100rpx;
		height: 100rpx;
		display: block;
		margin-top: 60rpx;
	}

	.tui-title {
		font-size: 42rpx;
		line-height: 42rpx;
		padding-top: 28rpx;
	}

	.tui-sub-title {
		color: #666666;
		font-size: 28rpx;
		line-height: 28rpx;
		padding-top: 20rpx;
	}

	.tui-btn-box {
		width: 580rpx;
		/* display: flex; */
		/* align-items: center; */
		/* justify-content: center; */
		padding-top: 88rpx;
		text-align: center;
	}
	.tui-btn{
		/* display: inline-block; */
		margin: 5px auto !important;
	}
	.tui-tips {
		font-size: 26rpx;
		padding: 48rpx 90rpx;
		box-sizing: border-box;
		text-align: justify;
		line-height: 48rpx;
	}

	.tui-grey {
		color: #555;
		padding-bottom: 8rpx;
	}

	.tui-light-grey {
		color: #888;
		line-height: 40rpx;
	}
</style>
